/*  1:   */ package org.jetbrains.java.debugger.breakpoints.properties;
/*  2:   */ 
/*  3:   */

import com.intellij.debugger.InstanceFilter;
import com.intellij.ui.classFilter.ClassFilter;
import com.intellij.util.xmlb.annotations.AbstractCollection;
import com.intellij.util.xmlb.annotations.OptionTag;
import com.intellij.util.xmlb.annotations.Tag;
import com.intellij.xdebugger.breakpoints.XBreakpointProperties;
import org.jetbrains.annotations.Nullable;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */
/*  8:   */
/*  9:   */
/* 10:   */ 
/* 11:   */ public class JavaBreakpointProperties<T extends JavaBreakpointProperties>
/* 12:   */   extends XBreakpointProperties<T>
/* 13:   */ {
/* 14:   */   @OptionTag("count-filter-enabled")
/* 15:30 */   public boolean COUNT_FILTER_ENABLED = false;
/* 16:   */   @OptionTag("count-filter")
/* 17:32 */   public int COUNT_FILTER = 0;
/* 18:   */   @OptionTag("class-filters-enabled")
/* 19:35 */   public boolean CLASS_FILTERS_ENABLED = false;
/* 20:   */   private ClassFilter[] a;
/* 21:   */   private ClassFilter[] b;
/* 22:   */   @OptionTag("instance-filters-enabled")
/* 23:40 */   public boolean INSTANCE_FILTERS_ENABLED = false;
/* 24:   */   private InstanceFilter[] c;
/* 25:   */   
/* 26:   */   @Tag("instance-filters")
/* 27:   */   @AbstractCollection(surroundWithTag=false)
/* 28:   */   public InstanceFilter[] getInstanceFilters()
/* 29:   */   {
/* 30:47 */     return this.c != null ? this.c : InstanceFilter.EMPTY_ARRAY;
/* 31:   */   }
/* 32:   */   
/* 33:   */   public void setInstanceFilters(InstanceFilter[] paramArrayOfInstanceFilter)
/* 34:   */   {
/* 35:51 */     this.c = paramArrayOfInstanceFilter;
/* 36:   */   }
/* 37:   */   
/* 38:   */   public void addInstanceFilter(long paramLong)
/* 39:   */   {
/* 40:55 */     InstanceFilter[] arrayOfInstanceFilter = new InstanceFilter[this.c.length + 1];
/* 41:56 */     System.arraycopy(this.c, 0, arrayOfInstanceFilter, 0, this.c.length);
/* 42:57 */     arrayOfInstanceFilter[this.c.length] = InstanceFilter.create(String.valueOf(paramLong));
/* 43:58 */     this.c = arrayOfInstanceFilter;
/* 44:   */   }
/* 45:   */   
/* 46:   */   @Tag("class-filters")
/* 47:   */   @AbstractCollection(surroundWithTag=false)
/* 48:   */   public final ClassFilter[] getClassFilters()
/* 49:   */   {
/* 50:64 */     return this.a != null ? this.a : ClassFilter.EMPTY_ARRAY;
/* 51:   */   }
/* 52:   */   
/* 53:   */   public final void setClassFilters(ClassFilter[] paramArrayOfClassFilter)
/* 54:   */   {
/* 55:68 */     this.a = paramArrayOfClassFilter;
/* 56:   */   }
/* 57:   */   
/* 58:   */   @Tag("class-exclusion-filters")
/* 59:   */   @AbstractCollection(surroundWithTag=false)
/* 60:   */   public ClassFilter[] getClassExclusionFilters()
/* 61:   */   {
/* 62:74 */     return this.b != null ? this.b : ClassFilter.EMPTY_ARRAY;
/* 63:   */   }
/* 64:   */   
/* 65:   */   public void setClassExclusionFilters(ClassFilter[] paramArrayOfClassFilter)
/* 66:   */   {
/* 67:78 */     this.b = paramArrayOfClassFilter;
/* 68:   */   }
/* 69:   */   
/* 70:   */   @Nullable
/* 71:   */   public T getState()
/* 72:   */   {
/* 73:84 */     return this;
/* 74:   */   }
/* 75:   */   
/* 76:   */   public void loadState(T paramT)
/* 77:   */   {
/* 78:89 */     this.COUNT_FILTER_ENABLED = paramT.COUNT_FILTER_ENABLED;
/* 79:90 */     this.COUNT_FILTER = paramT.COUNT_FILTER;
/* 80:   */     
/* 81:92 */     this.CLASS_FILTERS_ENABLED = paramT.CLASS_FILTERS_ENABLED;
/* 82:93 */     this.a = paramT.getClassFilters();
/* 83:94 */     this.b = paramT.getClassExclusionFilters();
/* 84:   */     
/* 85:96 */     this.INSTANCE_FILTERS_ENABLED = paramT.INSTANCE_FILTERS_ENABLED;
/* 86:97 */     this.c = paramT.getInstanceFilters();
/* 87:   */   }
/* 88:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.jetbrains.java.debugger.breakpoints.properties.JavaBreakpointProperties

 * JD-Core Version:    0.7.0.1

 */